<html><head><title>List</title></head>
<body bgcolor="#EFF1F0" link="#3A3966" vlink="#000000" alink="#000000">
<font face="Verdana, sans-serif" size="2"><p align="center"><b><font size="4">PureBasic - List</font></b></p>

<p><b>Overview</b></p><blockquote>


Lists (also known as linked-lists) are structures for storing data which are dynamically allocated 
depending of your need. It is a list of elements (the data you want to store) 
and each element is fully independent of the others. You can add as many elements 
you want (or as many as will fit into the memory of your computer), insert 
elements at the position you need, delete some other and more. This kind of data 
management is very useful as it's one of the best ways to handle data when you 
do not know how many elements you will need to store, or if you are often changing 
how many elements there are. 
<br>
<br>
Before you can work with Lists, you must declare them first. This could be 
done with the keyword <a href="../reference/newlist.html">NewList</a>. For saving 
the contents are also often used <a href="../reference/structures.html">structures</a>. 
<br>
<br>
Lists can be sorted using <a href="../sort/sortlist.html">SortList()</a> or <a href="../sort/sortstructuredlist.html">SortStructuredList()</a>, and can also 
be randomized using <a href="../sort/randomizelist.html">RandomizeList()</a>. 
<br>
<br>
To specifically search the contents of a List, using of loops is recommended: 
<a href="../reference/for_next.html">For : Next</a>, <a href="../reference/foreach_next.html">ForEach : Next</a>, 
<a href="../reference/repeat_until.html">Repeat : Until</a> or <a href="../reference/while_wend.html">While : Wend</a>. 
<br>
<br>
Other possibilities for storing data are the use of <a href="../array/index.html">Arrays</a> 
and <a href="../map/index.html">Maps</a>. 

</blockquote><p><b>Command Index</b><blockquote>
<a href="addelement.html">AddElement</a><br>
<a href="changecurrentelement.html">ChangeCurrentElement</a><br>
<a href="clearlist.html">ClearList</a><br>
<a href="copylist.html">CopyList</a><br>
<a href="countlist.html">CountList</a> (deprecated)<br>
<a href="deleteelement.html">DeleteElement</a><br>
<a href="firstelement.html">FirstElement</a><br>
<a href="freelist.html">FreeList</a><br>
<a href="insertelement.html">InsertElement</a><br>
<a href="lastelement.html">LastElement</a><br>
<a href="listindex.html">ListIndex</a><br>
<a href="listsize.html">ListSize</a><br>
<a href="mergelists.html">MergeLists</a><br>
<a href="moveelement.html">MoveElement</a><br>
<a href="nextelement.html">NextElement</a><br>
<a href="poplistposition.html">PopListPosition</a><br>
<a href="previouselement.html">PreviousElement</a><br>
<a href="pushlistposition.html">PushListPosition</a><br>
<a href="resetlist.html">ResetList</a><br>
<a href="selectelement.html">SelectElement</a><br>
<a href="splitlist.html">SplitList</a><br>
<a href="swapelements.html">SwapElements</a><br>
</blockquote></p>

<p><b>Example</b></p><blockquote>
<a href="../Examples/List.pb.html">List.pb</a>

</Blockquote><p><b>Supported OS </b><Blockquote>All</Blockquote></p><center><a href="../index.html">Reference Manual - Index</a></center><br><br>

</body></html>